package me.gacl.domain;

public class Blog {
	private Integer id;
	private Integer userId;
	private String title;
	private String content;
	private String authorName;
	
	private User author;
	
	public Blog() {
		
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public User getAuthor() {
		return author;
	}

	public void setAuthor(User author) {
		this.author = author;
	}

	@Override
	public String toString() {
		return "Blog [id=" + id + ", userId=" + userId + ", title=" + title + ", content=" + content + ", author=" + authorName + "]";
	}
	
}
